namespace Shared
{
[System.Serializable]
public class LightDimming:Common
{
///
/// µ÷¹âÆ÷
///
public LightDimming()
{
this.Type = DeviceType.LightDimming;
DeviceTextID = 3; //SimpleControl.R.MyInternationalizationString.Lights;
}
///
/// ÁÁ¶È
///
public byte CurrentBrightness;
///
/// ±£´æÉÏÒ»´Î´ò¿ªµÄÁÁ¶È
///
public byte LastOpenBrightness = 100;
///
/// ÑÓʱʱ¼ä¸ßλ
///
public byte DelayTimeHeight;
///
/// ÑÓʱʱ¼äµÍλ
///
public byte DelayTimeLow;
///
/// µ×ÏÞ
///
public byte Minimum;
///
/// ×î´óˮƽ
///
public byte MaxLevel;
///
/// ÊÇ·ñ¿ªÆôµ÷¹â¹¦ÄÜ
///
/// true if dimming function; otherwise, false.
public bool DimmingFunction {
get {
return !UserConfig.Instance.UnEnableDimmingLight.Contains (CommonLoopID);
}
}
///
/// Óû§×Ô¶¨ÒåµÄÑÓ³Ù¿ªÊ±¼ä
///
public byte CustomDelayTimeOpen;
///
/// Óû§×Ô¶¨ÒåµÄÑÓ³Ù¹ØÊ±¼ä
///
public byte CustomDelayTimeClose;
}
}